<template>
  <scroll-view scroll-x class="lucky_remind">
    <view class="info" style="background-image: url('https://lottery.yywlcm.com/upload/h5/home/4.png')">
      <view class="title fwb">明天开奖</view>
      <image class="commodity" src="../../../../static/test/1.png"></image>
      <text class="money">￥2333</text>
      <view class="lucky_btn">
        <image src="https://lottery.yywlcm.com/upload/h5/home/3.png"></image>
      </view>
    </view>
    <view class="info" style="background-image: url('https://lottery.yywlcm.com/upload/h5/home/4.png')">
      <view class="title fwb">明天开奖</view>
      <image class="commodity" src="../../../../static/test/1.png"></image>
      <text class="money">￥2333</text>
      <view class="lucky_btn">
        <image src="https://lottery.yywlcm.com/upload/h5/home/3.png"></image>
      </view>
    </view>
    <view class="info" style="background-image: url('https://lottery.yywlcm.com/upload/h5/home/4.png')">
      <view class="title fwb">明天开奖</view>
      <image class="commodity" src="../../../../static/test/1.png"></image>
      <text class="money">￥2333</text>
      <view class="lucky_btn">
        <image src="https://lottery.yywlcm.com/upload/h5/home/3.png"></image>
      </view>
    </view>
    <view class="info" style="background-image: url('https://lottery.yywlcm.com/upload/h5/home/4.png')">
      <view class="title fwb">明天开奖</view>
      <image class="commodity" src="../../../../static/test/1.png"></image>
      <text class="money">￥2333</text>
      <view class="lucky_btn">
        <image src="https://lottery.yywlcm.com/upload/h5/home/3.png"></image>
      </view>
    </view>
  </scroll-view>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.lucky_remind {
  white-space: nowrap;
  position: relative;
  top: 20rpx;
  .info {
    color: #fff;
    background-size: 100% 100%;
    border-radius: 25rpx;
    position: relative;
    text-align: center;
    display: inline-block;
    width: 31%;
    overflow: hidden;
    margin-right: 2%;
    height: 340rpx;
    &:last-child {
      margin-right: unset;
    }
    .title {
      margin-top: 10rpx;
    }
    .commodity {
      position: absolute;
      width: 80%;
      height: 130rpx;
      top: 20%;
      left: 50%;
      transform: translateX(-50%);
    }
    .money {
      position: absolute;
      bottom: 28%;
      left: 50%;
      transform: translateX(-50%);
    }
    .lucky_btn {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      image {
        width: 80rpx;
        height: 80rpx;
      }
    }
    .remind_btn {
        position: absolute;
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #148BFF;
        padding: 10rpx 20rpx;
        border-radius: 30rpx;
        font-size: 26rpx;
        image {
            width: 30rpx;
            height: 30rpx;
            vertical-align: middle;
            margin-right: 10rpx;
            position: relative;
            top: -5rpx;
        }
    }
  }
}
</style>